import * as roleMenuDao from '../dao/sys_role_menu.dao';

export async function getRoleMenus(role_id: number) {
    return await roleMenuDao.getRoleMenus(role_id);
}

export async function createRoleMenus(role_id: number, menu_ids: number[]) {
    return await roleMenuDao.createRoleMenus(role_id, menu_ids);
}

export async function updateRoleMenus(role_id: number, menu_ids: number[]) {
    return await roleMenuDao.updateRoleMenus(role_id, menu_ids);
}

// 
export async function deleteRoleMenus(role_id: number) {
    return await roleMenuDao.deleteRoleMenus(role_id);
} 